MailPoet\WooCommerce\Helper A

Total Complexity 70
Dependencies 12
Dependents 53
Total lines 330
Lines of code 233
Logical lines of code 94
Comment lines 29
Methods 41
Properties 1

Methods 41

Method Rating Maintainability Complexity Lines of code
getCouponList()
S
51 5 26
wasMailPoetInstalledViaWooCommerceOnboardingWizard()
S
59 5 14
isCheckoutRequest()
S
65 5 7
getShippingMethodInstancesData()
S
56 3 20
isWooCommerceCustomOrdersTableEnabled()
S
64 4 10
getCustomersCount()
S
63 4 10
isWooCommerceBlocksActive()
S
65 3 9
getLatestCoupon()
S
62 2 11
getAddressesTableName()
S
69 2 6
getWooCommerceVersion()
S
77 2 3
formatShippingMethods()
S
64 2 10
isWooCommerceActive()
S
79 2 3
getOrdersTableName()
S
69 2 6
wcGetPageId()
S
71 2 6
getOrderStatuses()
S
81 1 3
wcGetCouponTypes()
S
81 1 3
wcGetCouponCodeById()
S
80 1 3
createWcCoupon()
S
80 1 3
getRawPrice()
S
75 1 4
wcGetPriceDecimalSeparator()
S
81 1 3
getPaymentGateways()
S
81 1 3
getAllowedCountries()
S
79 1 3
__construct()
S
81 1 3
getOrdersCountCreatedBefore()
S
63 1 10
wcPrice()
S
79 1 3
getPurchaseStates()
S
72 1 6
WC()
S
81 1 3
wcGetCustomerOrderCount()
S
80 1 3
wcGetOrder()
S
80 1 3
wcGetOrders()
S
80 1 3
wcCreateOrder()
S
80 1 3
wcGetProduct()
S
80 1 3
wcHexIsLight()
S
80 1 3
wcGetPriceDecimals()
S
81 1 3
wcGetPriceDecimalSeperator()
S
81 1 3
wcGetPriceThousandSeparator()
S
81 1 3
getWoocommercePriceFormat()
S
81 1 3
getWoocommerceCurrency()
S
81 1 3
getWoocommerceCurrencySymbol()
S
81 1 3
wcLightOrDark()
S
79 1 3
woocommerceFormField()
S
79 1 3